class Sys::ModelsController < ApplicationController
  def index
    @result = []
    Model.includes(:columns).all.each do |model|
      @result.append(
          :name         => model.name,
          :id_property  => model.id_property,
          :name_field   => model.name_field,
          :columns      => model.columns
      )
    end
    render json: @result
  end
end